<template>
	<view>
		<view class="bgfff ">
			<button open-type="contact" class="butf">
				<view class="flex-ju-b con height100">
					<view class="size30">在线客服</view>
					<uni-icons type="right"></uni-icons>
				</view>
			</button>
		</view>
		<view class="bgfff border-bD6D6D6">
		<button @click="PhoneCall" class="butf">
			<view class="flex-ju-b con height100">
				<view class="size30">电话客服</view>
				<uni-icons type="right"></uni-icons>
			</view>
			</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phone:""
			}
		},
		onLoad() {
			this.http('site_config').then(res=>{
				this.phone=res.data.site_phone
			})
		},
		methods: {
			PhoneCall(){
				uni.makePhoneCall({
				  phoneNumber: this.phone
				})
			}
		}
	}
</script>

<style>
uni-button:after {
	border:none;
	background: none;
}
button{
	border:none;
	background: none;
}
.butf{
	border:none;
	background: none;
}

</style>
